package org.jeecg.modules.zcgl.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.zcgl.entity.AssetFixed;
import org.jeecg.modules.zcgl.entity.AssetFixedLog;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.zcgl.vo.statistical.AssetBorrowVo;
import org.jeecg.modules.zcgl.vo.statistical.AssetReturnVo;

/**
 * @Description: 固定资产记录
 * @Author: jeecg-boot
 * @Date:   2021-07-02
 * @Version: V1.0
 */
public interface IAssetFixedLogService extends IService<AssetFixedLog> {

    /**
     * 固定资产借用
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<AssetBorrowVo> queryAssetFixedBorrowPageList(Page<AssetBorrowVo> page, QueryWrapper<AssetBorrowVo> queryWrapper);

    /**
     * 固定资产归还
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<AssetReturnVo> queryAssetFixedReturnPageList(Page<AssetReturnVo> page, QueryWrapper<AssetReturnVo> queryWrapper);


    /**
     * 借用
     * @param assetFixed
     */
    void borrow(AssetFixedLog assetFixedLog);

    /**
     * 归还
     * @param assetFixed
     */
    void returnAsset(AssetFixedLog assetFixedLog);

}
